package com.ynet.middleground.approve.bean;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * CommentFile 处理意见附件信息
 *
 * @author suremotoo
 * @date 2023/03/10 09:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "处理意见附件信息", description = "处理意见附件信息")
public class CommentFile implements Serializable {

    private static final long serialVersionUID = 209067370720824246L;

    @ApiModelProperty(value = "文件名称（带后缀，如：清单.excel）", notes = "文件名称（带后缀，如：清单.excel）", dataType = "String",
        required = true)
    @NotBlank(message = "处理意见附件名称不可为空")
    private String name;

    @ApiModelProperty(value = "文件短路径地址(包含 Bucket) \n" + "  如：zhongtai/file.pdf",
        notes = "文件短路径地址(包含 Bucket) \n" + "  如：zhongtai/file.pdf", dataType = "String", required = true)
    @NotBlank(message = "处理意见附件地址不可为空")
    private String url;

}
